/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.strategy;

/**
 *
 * @author Nashief
 */
public class Context {
    
    int tempretureInf; 
    Strategy strategy;
    
    public Context(int tempretureInF,Strategy strategy){
    this.tempretureInf= tempretureInF;
    this.strategy=strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public int getTempretureInf() {
        return tempretureInf;
    }

    public void setTempretureInf(int tempretureInf) {
        this.tempretureInf = tempretureInf;
    }
    
   public boolean getResult(){
   return strategy.checkTempreture(tempretureInf);
   }
    
}
